package org.example.im.bean.protocol.response;

import lombok.*;
import org.example.im.bean.protocol.CommandType;
import org.example.im.bean.protocol.Packet;
import org.example.im.bean.session.Session;

import java.util.List;

/**
 * @author dingrui
 * @since 2022/2/12
 * @description 群成员
 */
@Data
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class ListGroupMemberResponsePacket extends Packet {

    private String groupId;
    private List<Session> sessionList;

    @Override
    public CommandType getCommandType() {
        return CommandType.LIST_GROUP_MEMBER_RESPONSE;
    }
}
